import qs from 'qs'
// axios
import request from './http/request';
// home api

export function articleList(data){
	return request({
		url: '/article/list',
		method: 'post',
		data,
		hideloading: false
	});
}
export function articleById(data){
	return request({
		url: '/article/findById',
		method: 'post',
		data,
		hideloading: false
	});
}
export function likeArticleById(data){
	return request({
		url: '/likeArticle/all',
		method: 'post',
		data,
		hideloading: false
	});
}
export function likeArticleDel(data){
	return request({
		url: '/likeArticle/del',
		method: 'post',
		data,
		hideloading: false
	});
}
export function likeArticleAdd(data){
	return request({
		url: '/likeArticle/add',
		method: 'post',
		data,
		hideloading: false
	});
}
export function saveArticleById(data){
	return request({
		url: '/collectArticle/all',
		method: 'post',
		data,
		hideloading: false
	});
}
export function saveArticleAdd(data){
	return request({
		url:'/collectArticle/add',
		method: 'post',
		data,
		hideloading: false
	});
}
export function saveArticleDel(data){
	return request({
		url: '/collectArticle/del',
		method: 'post',
		data,
		hideloading: false
	});
}